<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
Route::rule('login','index/login');
Route::post('ApiLogin','api/ApiLogin');//登录

Route::rule('out','index/out');
Route::rule('Register','index/Register');
Route::rule('FindPW','index/FindPW');
Route::rule('sendCode','index/sendCode');

Route::rule('index','index/index');
Route::rule('index2','index/index2');

Route::get('captcha','index/captcha');

Route::get('wxcash','api/wxcash');


Route::rule('home','index/home');
Route::rule('setting','index/setting');
Route::rule('SettingName','index/SettingName');
Route::rule('SettingPW','index/SettingPW');
Route::rule('SettingPayPW','index/SettingPayPW');


Route::post('editNick','api/editNick');
Route::post('editPwd','api/editPwd');
Route::post('editPayPwd','api/editPayPwd');

Route::post('checkInviteCode','api/checkInviteCode');//校验邀请码
Route::post('checkNick','api/checkNick');//校验姓名
Route::post('checkTel','api/checkTel');//校验手机号
Route::post('checkCode','api/checkCode');//校验手机号

Route::post('ApiReg','api/ApiReg');//注册


/***
 * 强制路由，开启后必须配置所有方法
 */
//Route::miss(function() {
//    return '404 Not Found!';
//});